package day4;

import java.lang.reflect.Array;

//
public class TestStringArray {
    public static void main(String[] args) {
        Object arr= Array.newInstance(String.class,5);
        Array.set(arr,0,"A");
        Array.set(arr,1,"B");
        Array.set(arr,2,"C");
        /*for(int i=0;i<Array.getLength(arr);i++){
            System.out.println(Array.get(arr,i));
        }*/
        String[] arrs=(String[]) arr;
        for(String arr1:arrs){
            System.out.println(arr1+"");
        }
    }
}
